package com.hc.demo.controller;

import com.hc.demo.domain.Orders;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

/**
 * 订单控制器
 */
@Controller
public class OredrsController {
    @RequestMapping("/createOrders")
    public @ResponseBody String createOrders(Orders orders){
        System.out.println("orders info:"+orders);
        return "create success";
    }
    @RequestMapping("/toCartList")
    public ModelAndView toCartList(){
        return new ModelAndView("cart_list");
    }
}
